<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><%=: title %></title>
    <!-- Bootstrap -->
    <link href="/stylesheets/bootstrap.css" rel="stylesheet" media="screen">
</head>
<body screen_capture_injected="true">

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="#">johwa's TestBlog</a>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li class="active"><a href="/">首页</a> </li>
                    <% if(!user){ %>
                    <li><a href="/login">登录</a> </li>
                    <li><a href="/reg">注册</a> </li>
                    <% } else { %>
                    <li><a href="/logout">退出</a> </li>
                    <% } %>
                </ul>

            </div>
        </div>
    </div>
</div>

<br /><br /><br />